package com.yuanfeng.job.mapper;

import com.yuanfeng.commoms.dto.goods.AppSeckillGoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName SeckillGoodsMapper
 * @Description
 * @Author hyq
 * @Date 2023/9/4 14:48
 * @Version 1.0
 **/
@Mapper
public interface SeckillGoodsMapper {


    //查询秒杀库存为零的商品
    List<AppSeckillGoodsVO> selectSeckillNum();


    //查询秒杀活动商品
    List<AppSeckillGoodsVO> selectSeckillGoods(@Param("seckillId")Integer seckillId);


    // 秒杀商品过期状态更新
    Integer updateSkillGoods1(@Param("goodsId")Integer goodsId);

    // 商品状态更新
    Integer updateSkillGoodsStatus(@Param("commonId")Integer commonId);

    //秒杀商品过期状态更新
    Integer updateSkillGoods(@Param("seckillId")Integer seckillId);

    //秒杀过期状态更新
    Integer updateGoodsStatus(@Param("seckillId")Integer seckillId);
}
